package com.whli.autumn.mall.wms.domain.dto;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.ToString;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.io.Serializable;
import java.math.BigDecimal;

/**
 * <p>库存占用参数</p>
 *
 * @author whli
 * @version 1.0.0
 * @since 2023/5/1 10:47
 */
@ApiModel(description = "库存占用参数")
@Data
@ToString(callSuper = true)
public class StockOccupiedDTO implements Serializable {

    @ApiModelProperty(value = "仓库信息")
    @NotBlank(message = "仓库信息不能为空")
    private String warehouseInfoId;

    @ApiModelProperty(value = "库区信息")
    @NotBlank(message = "库区信息不能为空")
    private String warehouseAreaId;

    @ApiModelProperty(value = "库位信息")
    @NotBlank(message = "库位信息不能为空")
    private String warehouseLocationId;

    @ApiModelProperty(value = "商品信息")
    @NotBlank(message = "商品信息不能为空")
    private String productId;

    @ApiModelProperty(value = "商品批号")
    private String batchNo;

    @ApiModelProperty(value = "商品条码")
    private String snNo;

    @ApiModelProperty(value = "客户批号")
    private String customBatchNo;

    @ApiModelProperty(value = "占用数量")
    @NotNull(message = "数量不能为空")
    private BigDecimal stockQty;

}
